import type { UserInfo } from '@vben/types';

import { requestClient } from '#/api/request';

/**
 * 获取用户信息
 */
export async function getUserInfoApi() {
  return requestClient.post<UserInfo>('/admin/user/system/auth/getUserInfo');
}

// 上传图片接口，最多一次20张
export async function uploadApi(file: any) {
  return requestClient.post('/admin/user/oss/upload', file, {
    headers: { 'Content-Type': 'multipart/form-data' },
  });
}
